package com.core.lambda;

public class FuncMain {
    public static void main(String[] args) {
        String res;
        res = concat(ts -> {
            StringBuilder s = new StringBuilder();
            for (String t : ts) {
                s.append(t);
            }
            return s.toString();
        }, "11", "," + "222", ",", "333");
        System.out.println(res);
    }

    public static String concat(Funcable<String, String> funcable, String... ts) {
        return funcable.apply(ts);
    }
}
